package com.wxlsoft.excel.core;

import javax.swing.JProgressBar;

public abstract class RunHandler {

	protected final AbstractProcessor processor;
	
	protected final String filePath;
	
	private final JProgressBar progressBar1;
	
	public RunHandler(AbstractProcessor processor, JProgressBar progressBar1, String filePath) {
		this.processor = processor;
		this.filePath = filePath;
		this.progressBar1 = progressBar1;
		processor.bind(progressBar1);
	}
	
	public abstract void run() throws Exception;
	
	public JProgressBar getJProgress() {
		return progressBar1;
	}
	
}
